package com.ldy.test;

import java.util.Date;

import com.google.gson.annotations.SerializedName;
import com.ldy.annotation.Field;
import com.ldy.annotation.Table;

@Table(tableName = "t_student")
public class Student {

	@Field(columnName = "id", generatedId = true)
	private int id;

	@Field(columnName = "name")
	private String name;

	@Field(columnName = "sex")
	private String sex;

	@SerializedName("age")
	@Field
	private long money;

	@SerializedName("age")
	private int age;

	@Field(columnName = "date")
	private Date date;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public long getMoney() {
		return money;
	}

	public void setMoney(long money) {
		this.money = money;
	}

	public Date getDate() {
		return date;
	}
	
	public void setDate(Date date){
		this.date = date;
	}
}
